﻿using Edu.Entitys;
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.AutoMapper;

namespace Edu.Contracts
{
    [AutoMapFrom(typeof(AchievementDto))]
    [AutoMapTo(typeof(AppAchievement))]
    public class AchievementCreateUpdateDto
    {
        [Required]
        [StringLength(128)]
        public string Name
        {
            get;
            set;
        }


        public string ActiveIcon
        {
            get;
            set;
        }

        public string DisableIcon
        {
            get;
            set;
        }

        public string Description
        {
            get;
            set;
        }

        /// <summary>
        /// 勋章所属
        /// </summary>
        [Required]
        public AchievementBelong Belong
        {
            get;
            set;
        }

        [Display(Name = "上传激活图标")]
        public IFormFile UploadActiveIcon { get; set; }


        [Display(Name = "上传未激活图标")]
        public IFormFile UploadDisableIcon { get; set; }
    }
}
